package ar.edu.sccs.model;

import java.io.File;

import org.apache.log4j.Logger;

import ar.edu.sccs.dao.DaoModule;
import ar.edu.sccs.dao.ProjectDTO;
import ar.edu.sccs.entities.Case;
import ar.edu.sccs.monitoring.logging.SCCSLogger;

public class FileModule {

	static Logger logger = SCCSLogger.getLogger(FileModule.class);

	private DaoModule daoModule = new DaoModule();

	public ProjectDTO getProjectInfo(Case selectedCase) {
		try {
			return daoModule.findProject(selectedCase.getProjectId());
		} catch (Exception e) {
			logger.error("FileModule.getProjectInfo ERROR: ", e);
			return null;
		}
	}

	public File getProjectFile(Case selectedCase) {
		try {
			ProjectDTO project = daoModule.findProject(selectedCase.getProjectId());
			return null;
		} catch (Exception e) {
			logger.error("FileModule.getProjectFile ERROR: ", e);
			return null;
		}
	}
}
